package com.itheima3;

import java.util.List;

public class Work04 {
    public static void main(String[] args) {
        //准备集合数据
        List<String> list = List.of("aaaaaaA", "aAbBcCdDEe", "abcdef", "aABDAa");
        //找出最多的那个数
        int count = list.stream().mapToInt(Work04::countLowcase).max().getAsInt();
        System.out.println(count);
    }
    public static int countLowcase(String str){
        return (int)str.chars().filter(Character::isLowerCase).count();
    }
}
